package com.tansty.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * description:  <br>
 * date: 2021/8/27 13:23 <br>
 * author: ztz <br>
 * version: 1.0 <br>
 */
@Data
public class OrderDTO {
    private Integer id;
    private String name;
    private Double price;
    private String userName;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date buyDate;
}
